from rest_framework.viewsets import ModelViewSet

from meiduo_admin.serializers.brandSerializer import BrandSerializer
from goods.models import Brand
from meiduo_admin.utils import PaginatorShow
from meiduo_admin.permissions import *


class BrandView(ModelViewSet):
    queryset = Brand.objects.all().order_by("id")
    serializer_class = BrandSerializer
    permission_classes = [IsAdminUser]

    pagination_class = PaginatorShow

